package com.example.take_out_dish.mapper;

import com.baomidou.mybatisplus.core.injector.methods.UpdateById;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.take_out_dish.dto.DishDTO;
import com.example.take_out_dish.dto.SetmealDto;
import com.example.take_out_dish.entity.Setmeal;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.take_out_dish.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 套餐 Mapper 接口
 * </p>
 *
 * @author yyyyys
 * @since 2024-07-01
 */
@Mapper
public interface SetmealMapper extends BaseMapper<Setmeal> {
    List<SetmealDto> selectSetmaelDTOPage(@Param("page") Page<SetmealDto> page,
                                        @Param("name") String name,
                                        @Param("categoryId") String categoryId,
                                        @Param("status") Integer status);

    int insertSetmeal(Setmeal setmeal);
    int insertSetmealA(Setmeal setmeal);
    int updateById(Setmeal setmeal);

}
